package edu.qichen.onlineBlog.framework.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/5/13 16:45
 */
@Data
@Component
@ConfigurationProperties(prefix = "oss.config")
public class OSSConfig {
    public boolean enable = true;

    public String endpoint = "https://oss-cn-beijing.aliyuncs.com";

    public String accesskeyid = "LTAI5tNamtJf2ScFA7xh1jz6";

    public String accesskeysecret = "vguMAl4px2fcuX4lMphwsg8xExy6Jg";

    public String bucketname = "onlineblog";

    public String key = "images/upload/";

    public String host = "oss-cn-beijing.aliyuncs.com";
}
